﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Shuba.Business
{
    public class Holiday
    {
        Shuba.Data.Holiday bl;

        public Holiday()
        {
            bl = new Shuba.Data.Holiday();
        }

        public List<Shuba.Model.HolidayInfo> GetList(string HOLIDAY_NAME)
        {
            return bl.GetList(HOLIDAY_NAME);
        }

        public Shuba.Model.HolidayInfo Get(DateTime HOLIDAY_DATE)
        {
            return bl.Get(HOLIDAY_DATE);
        }

        public static bool CheckExistingCodeAndName(DateTime HOLIDAY_DATE, string HOLIDAY_NAME)
        {
            return Shuba.Data.Holiday.CheckExistingCodeAndName(HOLIDAY_DATE, HOLIDAY_NAME);
        }

        public int Save(Shuba.Model.HolidayInfo Info)
        {
            return bl.Save(Info);
        }

        public List<Shuba.Model.HolidayInfo> GetListApproval(string UPDATE_BY)
        {
            return bl.GetListApproval(UPDATE_BY);
        }

        public void Approve(DateTime HOLIDAY_DATE, string ACT_TYPE)
        {
            bl.Approve(HOLIDAY_DATE, ACT_TYPE);
        }

        public void Reject(DateTime HOLIDAY_DATE)
        {
            bl.Reject(HOLIDAY_DATE);
        }

        public Shuba.Model.HolidayInfo GetApprovalByID(DateTime HOLIDAY_DATE)
        {
            return bl.GetApprovalByID(HOLIDAY_DATE);
        }
    }
}
